package com.wr.common.service;

import com.github.pagehelper.PageInfo;
import com.wr.common.entity.BaseEntity;

public interface BaseService<T extends BaseEntity> {

    int insert(T t,String createBy);

    int update(T t,String updateBy);

    int delete(T t);

    T selectOne(T t);

    int selectCount(T t);

    PageInfo<T> page(int pageNum,int pageSize,T t);
}
